import { Router, createRouter, createWebHashHistory } from "vue-router";

/** 创建路由实例 */
export const router: Router = createRouter({
	history: createWebHashHistory(),
	routes: [
		{
			path: "/",
			name: "DataQueryPage",
			component: () => import("@/client/test1/data-query-page.vue"),
		},
		{
			path: "/TableLoad",
			name: "TableLoad",
			component: () => import("@/client/test2/data-query-page.vue"),
		},
		{
			path: "/DetailPage",
			name: "DetailPage",
			component: () => import("@/client/detail-page/index.vue"),
		},
		{
			path: "/TreeMenu",
			name: "TreeMenu",
			component: () => import("@/client/tree.vue"),
		},
		{
			path: "/pageDialog",
			name: "pageDialog",
			component: () => import("@/client/pageDialog.vue"),
		},
		{
			path: "/Cascader",
			name: "Cascader",
			component: () => import("@/client/cascader.vue"),
		},
		{
			path: "/FormBox",
			name: "FormBox",
			component: () => import("@/client/formBox.vue"),
		},
		{
			path: "/PreviewForm",
			name: "PreviewForm",
			component: () => import("@/client/form-preview/index.vue"),
		},
		{
			path: "/Map",
			name: "Map",
			component: () => import("@/client/map/index.vue"),
		},
	],
	strict: true,
});
